<template>
	<view>
		<uni-popup ref="authorize" :maskClick="false" type="center">
			<view class="authorize-wrap">
				<view class="img-bg"><image src="../../static/imgs/home/authorize-bg.png" mode=""></image></view>
				<view class="content">
					<view class="tit">您还没有实名认证</view>
					<view class="desc">请您通过实名认证，才能进行选车服务</view>
					<view class="btns">
						<view class="btn cancle" @click="hide">我知道了</view>
						<view class="btn confirm" @click="handleConfirm">立即认证</view>
					</view>
				</view>
			</view>
		</uni-popup>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods: {
			show() {
				this.$refs.authorize.open()
			},
			hide() {
				this.$refs.authorize.close()
			},
			handleConfirm() {
				this.$emit('confirm')
				this.hide()
			}
		}
	}
</script>

<style lang="scss" scoped>
.authorize-wrap {
	width: 596rpx;
	height: 626rpx;
	position: relative;
	.img-bg {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: -1;
	}
	.content {
		padding-top: 290rpx;
		display: flex;
		flex-direction: column;
		align-items: center;
		.tit {
			font-size: 42rpx;
			font-weight: bold;
		}
		.desc {
			font-size: 30rpx;
			color:#666;
			padding: 33rpx 0 90rpx;
		}
		.btns {
			display: flex;
			.btn {
				width:218rpx;
				height:73rpx;
				text-align: center;
				line-height: 73rpx;
				border-radius:37rpx;
				font-size: 28rpx;
				&.cancle {
					color: #999;
					border:1px solid #ccc;
					margin-right: 26rpx;
				}
				&.confirm {
					color: #fff;
					background-color: $blue;
					border:1px solid $blue;
				}
			}
		}
	}
}
</style>
